import request from '@/utils/request'
//获取一级分类数据的接口
export const getCategory1=()=>request({
  url:`/admin/product/getCategory1`,
  method:'get'
})
//获取二级分类数据的接口
export const getCategory2 =(category1Id)=>request({
  url:`/admin/product/getCategory2/${category1Id}`,
  method:'get'
})
//获取三级分类数据的接口
export const getCategory3 = (category2Id)=>request({
  url:`/admin/product/get/category3/${category2Id}`,
  method:"get"
})
//获取属性信息
 export const getAttrInfo = (category1Id,category2Id,category3Id)=>request({
    url:`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`,
    method:'get'
 })
 //添加属性与属性值
 export const reqAddorUpdateAttr = (attr)=>request({
  url:'/admin/product/saveAttrInfo',
  data:attr,
  method:'post'
 })
 